<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>出售金种子</title>
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
		<script language="javascript" type="text/javascript" src="../js/js/baseJs.js"></script>
	</head>
	<body>
		<div class="trading-center-wrapper" id="tradingCenter">
			<div class="wap-header">出售
				<a class="back" onClick="javascript:window.history.back();return false;"></a>
			</div>
			<div class="tab-c">
				<div class="tab ">金种子LZB</div>
				<div class="sale-btn">我要出售</div>
			</div>
			<div class="item-c">
				<div class="title-c">
					<div style="display: flex;flex-direction: row;">
						<div class="name">来赚吧</div>
						<div class="ico"></div>
					</div>
					<div class="time">2021-01-02</div>
				</div>
				<div class="number">出售数量：2枚</div>
				<div class="line-c">
					<div>单价</div>
					<div class="price">￥10</div>
				</div>
				<div class="line-c">
					<div class="ico-c">
						<div class="zhifubao"></div>
						<div class="yinglian"></div>
					</div>
					<div class="buy-btn">购买</div>

				</div>
			</div>
			<div class="item-c">
				<div class="title-c">
					<div style="display: flex;flex-direction: row;">
						<div class="name">来赚吧</div>
						<div class="ico"></div>
					</div>
					<div class="time">2021-01-02</div>
				</div>
				<div class="number">出售数量：2枚</div>
				<div class="line-c">
					<div>单价</div>
					<div class="price">￥10</div>
				</div>
				<div class="line-c">
					<div class="ico-c">
						<div class="zhifubao"></div>

					</div>
					<div class="buy-btn">购买</div>

				</div>
			</div>

		</div>
		<script src="../js/js/rem_fix.js"></script>
		<script src="../js/js/common.js"></script>
		<script type="text/javascript">
			var token = getCookie("userToken");
			var userId = getCookie("userId");
			var loginUrl = "../userBundle/login.mobile.html" + "?" + "../userBundle/tradingCenter.mobile.html";
			if (!token || !userId) {
				window.location.href = loginUrl;
			}
			require(["../js/js/base_config", "../js/js/better_scroll"], function(baseContent, BScroll) {
				var tradingCenterApp = new Vue({
					el: '#tradingCenter',
					data: {},
					created: function() {
						this.fetchData()
					},
					methods: {
						fetchData: function() {
							var url = "/jzz/business";
							var data = {
								client: "1",
								page: 1,
								size: 30,
								token: token,
								type: '1',
								userId: userId
							}
							pushData(url, data, function(res) {
								console.log(res)
							})
						}
					}
				})
			})
		</script>

	</body>
</html>
